﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<link rel="stylesheet" href="${ctx}/ztree/css/zTreeStyle/zTreeStyle.css" />
<script src="${ctx}/jquery/jquery-2.1.4.min.js" type="text/javascript"></script>
<script src="${ctx}/ztree/js/jquery.ztree.all.min.js" type="text/javascript"></script>

<script type="text/javascript">
		var setting = {
			data: {
				simpleData: {
					enable: true
				}
			},
			callback:{
				onClick:function(){
					parent.workareaFrame.location = "./detail.jsp";
				}
			}
		};

		var zNodes =[
			{id:"1",pId:"0",name:"逸天教育管理系统",open:true},
			{id:"11",pId:"1",name:"系统管理",open:true},
			{id:"111",pId:"11",name:"部门管理",open:true},
			{id:"1111",pId:"111",name:"管理部",open:true},
			{id:"1112",pId:"111",name:"讲师部",open:true},
			{id:"1113",pId:"111",name:"学管部",open:true},
			{id:"1114",pId:"111",name:"招生部",open:true},
			{id:"1115",pId:"111",name:"后勤部",open:true},
			{id:"1116",pId:"111",name:"财务部",open:true}
			/* {id:"1111",pId:"111",name:"许可维护",open:true},
			{id:"11111",pId:"1111",name:"新增许可"},
			{id:"11112",pId:"1111",name:"修改许可"},
			{id:"11113",pId:"1111",name:"删除许可"},
			{id:"1112",pId:"111",name:"角色维护",open:true},
			{id:"11121",pId:"1112",name:"新增角色"},
			{id:"11122",pId:"1112",name:"修改角色"},
			{id:"11123",pId:"1112",name:"删除角色"},
			{id:"1113",pId:"111",name:"用户维护",open:true},
			{id:"11131",pId:"1113",name:"新增用户"},
			{id:"11132",pId:"1113",name:"修改用户"},
			{id:"11133",pId:"1113",name:"删除用户"}, */
		];
			$(document).ready(function(){
				$.fn.zTree.init($("#permission_tree"), setting, zNodes);
			});
		</script>
<ul id="permission_tree" class="ztree">
</ul>
